﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;

public class DragRatota : MonoBehaviour, IDragHandler
{
    private GameObject models;
    private void Start()
    {
        models=GameObject.Find("ModelStudio(Clone)/Models").gameObject;
    }
    public void OnDrag(PointerEventData eventData)
    {
        models.transform.Rotate(0,-eventData.delta.x,0);
    }
}
